﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" Currency to change the interface name "ICurrencyServices" in both code and config file together.
    [ServiceContract]
    public interface ICurrencyServices
    {
        [OperationContract]
        List<CurrencyDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(CurrencyDTO Currency);

        [OperationContract]
        bool Delete(CurrencyDTO Currency);

        [OperationContract]
        List<CurrencyDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                            out long recordCount);

        [OperationContract]
        List<CurrencyDTO> GetAllCurrency();

        [OperationContract]
        CurrencyDTO GetCurrency(string kodeCurrency);

        [OperationContract]
        List<CurrencyDTO> GetCurrencyList(string kodeCurrency);
    }
}